<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>首页</title>
    <link rel="stylesheet" href="/yilianti/Public/home/js/layui/css/layui.css"/>
    <script src="/yilianti/Public/home/js/layui/layui.js"></script>
    <script src="/yilianti/Public/home/js/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script src="/yilianti/Public/home/js/zepto.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="/yilianti/Public/home/js/TouchSlide.1.1.js"></script>
    <script src="/yilianti/Public/home/js/jQuery.textSlider.js"></script>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <link rel="stylesheet" href="/yilianti/Public/home/css/weui.css"/>
    <link rel="stylesheet" href="/yilianti/Public/home/css/myself.css"/>
    <script>
        layui.use('layer', function(){
            var layer = layui.layer;
        });
    </script>
</head>
<body>
<!--

-->


    <div class="page__bd">
        <!--<div class="about_top_img">
            &lt;!&ndash;<img src="/yilianti/Public/home/img/bann.png" alt="">&ndash;&gt;
            <?php if(is_array($adlist)): foreach($adlist as $key=>$vo): ?><img src="<?php echo ($vo['titlepic']); ?>" alt=""><?php endforeach; endif; ?>
        </div>-->
        <div id="ind_slideBox" class="ind_banner wrap_wap">
            <div class="ind_bd">
                <ul>
                    <?php if(is_array($adlist)): foreach($adlist as $key=>$vo): ?><li><img src="<?php echo ($vo['titlepic']); ?>" /></li><?php endforeach; endif; ?>
                </ul>
            </div>
            <div class="ind_hd">
                <ul></ul>
            </div>
            <script type="text/javascript">
                TouchSlide({
                    slideCell:"#ind_slideBox",
                    titCell:".ind_hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
                    mainCell:".ind_bd ul",
                    effect:"leftLoop",
                    autoPage:true,//自动分页
                    autoPlay:true //自动播放
                });
            </script>
        </div>
        <!--<div class="weui-cell index_head">
		       <span class="fl headline_lef">
		       	医联体头条
		       </span>
            <ul class="headline_rig fr">
                <?php if(is_array($noticelist)): foreach($noticelist as $key=>$list): ?><li><a href="/yilianti/index.php/Article/noticedetail/id/<?php echo ($list['id']); ?>"><?php echo ($list['title']); ?></a></li><?php endforeach; endif; ?>
            </ul>
        </div>-->
        <div id="scrollDiv2">
	        <span class="fl headline_lef">
		       	医联体头条
		       </span>

            <div class="scrollText">
                <ul>
                    <?php if(is_array($noticelist)): foreach($noticelist as $key=>$list): ?><li><a href="/yilianti/index.php/Article/noticedetail/id/<?php echo ($list['id']); ?>"><?php echo ($list['title']); ?></a><span><?php echo ($list['addtime']); ?></span></li><?php endforeach; endif; ?>
                </ul>
            </div>
        </div>


        <ul class="module clear">
            <li class="fl">
                <a class="icon" href="/yilianti/index.php/Article/noticelist">
                    <span class="moduleimg ico_tongzhi"></span>
                    <span class="module-desc">通知公告</span>
                </a>
            </li>
            <li class="fl">
                <a class="icon" href="/yilianti/index.php/Article/index">
                    <span class="moduleimg ico_xinwen"></span>
                    <span class="module-desc">新闻动态</span>
                </a>
            </li>
            <li class="fl">
                <a class="icon" href="/yilianti/index.php/Article/learnlist">
                    <span class="moduleimg ico_jixu"></span>
                    <span class="module-desc">继续教育</span>
                </a>
            </li>
            <li class="fl">
                <a class="icon" href="/yilianti/index.php/Referral/index">
                    <span class="moduleimg ico_zhuanzhen"></span>
                    <span class="module-desc">转诊会诊</span>
                </a>
            </li>
        </ul>

        <div class="index_jianj">
            <div class="ind_tit ind_tit_jianj c_lan">医联体简介 </div>
            <article class="weui-article article_ind_con ">
                <p>
                    <?php echo (msubstr($aboutlist['content'],0,70,'utf-8',false)); ?>...
                </p>
                <a href="/yilianti/index.php/Index/aboutdetail">
                    了解详情>>
                </a>
            </article>
        </div>

        <div id="" class="index_jianj">
            <div class="ind_tit ind_tit_news c_lan">新闻动态 </div>
            <div class="weui-cells">
                <?php if(is_array($article)): foreach($article as $key=>$list): ?><a href="/yilianti/index.php/Article/articledetail/id/<?php echo ($list['id']); ?>" class="weui-cell">
                        <div class="weui-cell__bd">
                            <p><?php echo ($list['title']); ?></p>
                        </div>
                        <div class="weui-cell__ft"><?php echo (todate($list['addtime'])); ?></div>
                    </a><?php endforeach; endif; ?>
            </div>
        </div>
        <div class="ind_tit ind_tit_jixu c_lan">继续教育 </div>
        <div class="weui-cells">
            <?php if(is_array($learn)): foreach($learn as $key=>$list): ?><a href="<?php echo ($list['file']); ?>" class="weui-cell" >
                    <div class="weui-cell__bd">
                        <p><?php echo ($list['title']); ?></p>
                    </div>
                    <div class="weui-cell__ft"><?php echo (todate($list['addtime'])); ?></div>
                </a><?php endforeach; endif; ?>
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function(){
            $("#scrollDiv2").textSlider({line:2,speed:500,timer:3000});
        });
    </script>



    <div class="weui-tabbar">
        <a href="/yilianti/index.php/Index/index" class="weui-tabbar__item weui-bar__item_on">
                <span style="display: inline-block;position: relative;">
                    <img src="/yilianti/Public/home/img/ind_01.png" alt="" class="weui-tabbar__icon">

                </span>
            <p class="weui-tabbar__label">首页</p>
        </a>
        <a href="/yilianti/index.php/Article/index" class="weui-tabbar__item">
            <img src="/yilianti/Public/home/img/ind_02.png" alt="" class="weui-tabbar__icon">
            <p class="weui-tabbar__label">新闻动态</p>
        </a>
        <a href="/yilianti/index.php/Referral/index" class="weui-tabbar__item">
                <span style="display: inline-block;position: relative;">
                    <img src="/yilianti/Public/home/img/ind_03.png" alt="" class="weui-tabbar__icon">

                </span>
            <p class="weui-tabbar__label">会诊转诊</p>
        </a>
        <a href="/yilianti/index.php/User/userlist" class="weui-tabbar__item">
            <img src="/yilianti/Public/home/img/ind_04.png" alt="" class="weui-tabbar__icon">
            <p class="weui-tabbar__label">个人中心</p>
        </a>
    </div>
    <script type="text/javascript">
        $(function(){
            $('.weui-tabbar__item').on('click', function () {
                $(this).addClass('weui-bar__item_on').siblings('.weui-bar__item_on').removeClass('weui-bar__item_on');
            });
        });
    </script>
    <script type="text/javascript" class="uploader js_show">
        $(function(){
            var tmpl = '<li class="weui-uploader__file" style="background-image:url(#url#)"></li>',
                $gallery = $("#gallery"), $galleryImg = $("#galleryImg"),
                $uploaderInput = $("#uploaderInput"),
                $uploaderFiles = $("#uploaderFiles")
                ;

            $uploaderInput.on("change", function(e){
                var src, url = window.URL || window.webkitURL || window.mozURL, files = e.target.files;
                for (var i = 0, len = files.length; i < len; ++i) {
                    var file = files[i];

                    if (url) {
                        src = url.createObjectURL(file);
                    } else {
                        src = e.target.result;
                    }

                    $uploaderFiles.append($(tmpl.replace('#url#', src)));
                }
            });
            $uploaderFiles.on("click", "li", function(){
                $galleryImg.attr("style", this.getAttribute("style"));
                $gallery.fadeIn(100);
            });
            $gallery.on("click", function(){
                $gallery.fadeOut(100);
            });
        });
    </script>


</body>
</html>